<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="application/javascript" src="../../js/angular-1.4.1/angular.js"></script>
    <script type="application/javascript" src="备忘录.js"></script>
</head>
<body ng-app="myApp">
    <!--Reference: https://ke.qq.com/course/270442-->
    <div ng-controller="myCtr">
        <h2>我的备忘录</h2>
        <div>
            <input type="text" ng-model="newTodo"/>
            <button ng-click="add()">添加</button>
        </div>
        <div ng-repeat="todo in todos">
            <input type="checkbox" ng-model="todo.isChecked"/>
            <span>{{todo.name}}</span>
        </div>
        <button ng-click="del()">删除选中的记录</button>
    </div>
</body>
</html>